package com.chainshop.common.core.domain.pojo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chainshop.common.annotation.Excel;
import com.chainshop.common.core.domain.BaseEntity;

/**
 * 收入查询对象 revenue_records
 * 
 * @author hmy
 * @date 2024-08-15
 */
public class RevenueRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收入记录ID */
    private Long id;

    /** 收入类型 */
    @Excel(name = "收入类型")
    private String incomeType;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 销售订单ID */
    @Excel(name = "销售订单ID")
    private Integer salesOrderId;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /** 收入日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收入日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date incomeDate;
    private String productName;
    private Integer saleNum;
    private BigDecimal price;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Integer storeId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    @Override
    public String toString() {
        return "RevenueRecords{" +
                "id=" + id +
                ", incomeType='" + incomeType + '\'' +
                ", amount=" + amount +
                ", salesOrderId=" + salesOrderId +
                ", incomeDate=" + incomeDate +
                ", productName='" + productName + '\'' +
                ", saleNum=" + saleNum +
                ", price=" + price +
                ", storeId=" + storeId +
                '}';
    }

    public void setIncomeType(String incomeType)
    {
        this.incomeType = incomeType;
    }

    public String getIncomeType() 
    {
        return incomeType;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setSalesOrderId(Integer salesOrderId) 
    {
        this.salesOrderId = salesOrderId;
    }

    public Integer getSalesOrderId() 
    {
        return salesOrderId;
    }
    public void setIncomeDate(Date incomeDate) 
    {
        this.incomeDate = incomeDate;
    }

    public Date getIncomeDate() 
    {
        return incomeDate;
    }
    public void setStoreId(Integer storeId) 
    {
        this.storeId = storeId;
    }

    public Integer getStoreId() 
    {
        return storeId;
    }

}
